import Taro from '@tarojs/taro'

export function homeList() {
    return Taro.request({
        url: 'https://www.fastmock.site/mock/0f956fab0851dd5c21eb1279e6f3c302/api/homePage'
    })
}
export async function indexTaskList() {
    let arr = []
    return new Promise((reslove) => {
        setTimeout(async () => {
            arr = [
                {
                    title: '每周学习串联知识点每周学习串联知识点',
                    imgUrl: 'https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg?cs=srgb&dl=pexels-ella-olsson-1640777.jpg&fm=jpg',
                    lastTime: '2021-09-10',
                    createTime: '2021-09-01',
                    id: "1213"
                },
                {
                    title: '每周游泳吧',
                    imgUrl: 'https://images.pexels.com/photos/1263348/pexels-photo-1263348.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500',
                    lastTime: '2021-09-10',
                    createTime: '2021-09-01',
                    id: "1223"
                },
                {
                    title: '每周跑步一次',
                    imgUrl: 'https://images.pexels.com/photos/3764154/pexels-photo-3764154.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500',
                    lastTime: '2021-09-10',
                    createTime: '2021-09-01',
                    id: "1233"
                }
            ]
            reslove(arr)
        }, 1500);
    })
}